import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

public class MyListener implements TaskListener {


	@Override
	public void notify(DelegateTask delegateTask) {
		System.err.println(delegateTask.getEventName());
		delegateTask.setVariableLocal("222", "333");
		System.err.println("自定义监听器" + delegateTask);
	}
}